import type { IList, IResult } from "@/types/common";
import { getAxios } from "@/utils/request.js";
/* 红包日志信息地址*/
const url = "/back/money-log";
/*红包日志数据：获取红包日志 信息 */
export const getMoneyLogUrlInfo = <T, D>(params?: D): Promise<IResult<IList<T>>> => {
  return getAxios<IList<T>, D>(url, params);
};
/* 红包日志数据：获取红包日志 详情信息 */
// export const getMoneyLogByIdInfo = params => {
//   return getAxios(url + "/" + params.id, {});
// };
/*红包日志数据：导出红包日志 信息 */
export const getMoneyLogExportUrlInfo = <T, D>(params: D): Promise<IResult<T>> => {
  return getAxios<T, D>(url + "/export", params);
};
